package com.example.front.controller;

import com.example.api.service.PlatBaseInfoService;
import com.example.api.service.ProductService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.data.redis.core.StringRedisTemplate;

import javax.annotation.Resource;

/**
 * @Author cjk
 * @Date 2024 07 23 19 58
 **/

public class BaseController {
    //声明公共的方法，属性等
    @Resource
    protected StringRedisTemplate stringRedisTemplate;
    //平台信息
    @DubboReference(interfaceClass = PlatBaseInfoService.class,version = "1.0")
    protected PlatBaseInfoService platBaseInfoService;
    //产品信息
    @DubboReference(interfaceClass = ProductService.class,version ="1.0")
    protected ProductService productService;
}
